package com.turing.merchant.mapper;

import com.turing.merchant.entity.CustomerGood;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
* @author 28123
* @description 针对表【customer_good(用户商品)】的数据库操作Mapper
* @createDate 2023-05-10 16:41:52
* @Entity com.turing.merchant.entity.CustomerGood
*/
public interface CustomerGoodMapper extends BaseMapper<CustomerGood> {

    List<Map> cgList(@Param("merchantName") String merchantName, @Param("gdName") String gdName, @Param("priceType") Integer priceType, @Param("cusNickname") String cusNickname, @Param("pageNum") Integer pageNum, @Param("pageSize") Integer pageSize);
    
    Integer selectByGdIdCount(@Param("cusId") String cusId, @Param("gdId") String gdId);

    List<CustomerGood> selectUseGood(@Param("gdId") String gdId, @Param("cusId") String cusId);

    Integer sumGdCount(@Param("gdId") String gdId, @Param("cusId") String cusId);
}







